<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>bug_update_form</title>
    <link rel="stylesheet" href="./style1.css" type="text/css">
    <script src="./assets/js/myJaveScript.js" type="text/javascript"></script>
    <link rel='stylesheet' href='./assets/css/bootstrap.min.css' type='text/css' media='all'/>
    <link rel='stylesheet' href='./assets/css/animate.min.css' type='text/css' media='all'/>
    <link rel='stylesheet' href='./style.css' type='text/css' media='all'/>
    <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C700italic%2C300%2C400%2C700%2C800%7CMontserrat%3A300italic%2C400italic%2C700italic%2C300%2C400%2C700%7CDosis%3A400%2C700&#038;ver=4.5' type='text/css' media='all'/>
    <link rel='stylesheet' href='./icons/elegantline/style.css' type='text/css' media='all'/>
    <link rel='stylesheet' href='./assets/css/font-awesome.min.css' type='text/css' media='all' />
    <link rel='stylesheet' href='./assets/css/flexslider.css' type='text/css' media='all'/>
</head>
<body>
<header id="header">
    <div id="mega-menu" class="header header2 header-sticky primary-menu icons-no default-skin zoomIn align-right">
        <nav class="navbar navbar-default redq">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand" >
                        <img src="./assets/img/logo-dark.png" alt="logo">
                    </a>

                </div>
                <div class="collapse navbar-collapse" id="navbar">
                    <a class="mobile-menu-close"><i class="fa fa-close"></i></a>
                    <div class="menu-top-menu-container">
                        <ul id="menu-top-menu" class="nav navbar-nav nav-list">
                            <li><div th:text="'您好，'+${session.name} + '!'" style="text-align: right;font-size: 20px"></div></li>
                            <li><button type="button" style="background-color: #5899ce; color: white;width:100px;text-align:center;height:50px;font-size: 18px"><a th:href="@{/}">注销登录</a></button></li>
                        </ul>
                    </div>
                </div>
            </div>
        </nav>
    </div>
</header>
<section id="home" style="padding:160px 0;background-image: url(https://unsplash.it/1324/683?random=0); background-position: center; background-repeat: no-repeat;background-size: cover;background-attachment:fixed;">
    <div class="container">
        <div class="textwidget">
            <h1 class="toptitle">软  件  缺  陷  管  理<br/> 系 统 <br/><br/><i class="fa fa-star roundicon"></i>
            </h1>
        </div>
    </div>
</section>
<div id="total1">
    <div class="main">
        <!--Thymeleaf 前端框架以 Html 为载体-->
        <form th:action="@{/update}" th:object="${bug}" method="post">
            <table  id="table1" cellspacing="0px" align="center">
                <tr class="tableTitle" align="center">
                    <td class="col1">bugId<br>(缺陷ID)</br></td>
                    <td class="col2">level<br>(优先级)</br></td>
                    <td class="col3">descriptionTestManager<br>(测试经理描述)</br></td>
                    <td class="col4">createTime<br>(创建时间)</br></td>
                    <td class="col6">statusId<br>(状态ID)</br></td>
                    <td class="col7">typeId<br>(类型ID)</br></td>
                    <td class="col8">submitterId<br>(提交人ID)</br></td>
                    <td class="col9">删除<br></td>
                </tr>
                <tr align="center">
                    <td>
                        <select th:field="*{bugId}">
                        <option th:value="${bug.getBugId()}" th:text="${bug.getBugId()}"></option>
                        </select>
                    </td>
                    <td><input type="text" th:field="*{level}"></td>
                    <td><input type="text" th:field="*{descriptionTestManager}"></td>
                    <td><input type="date" th:field="*{createTime}"></td>
                    <td>
                        <select th:field="*{statusId}">
                            <option th:each="statusObj : ${statusMap}" th:value="${statusObj.value}" th:text="${statusObj.key}"></option>
                        </select>
                    </td>
                    <td>
                        <select th:field="*{typeId}">
                            <option th:each="typeObj : ${typeMap}" th:value="${typeObj.value}" th:text="${typeObj.key}"></option>
                        </select>
                    </td>
                    <td>
                        <select th:field="*{submitterId}">
                            <option th:value="${bug.getSubmitterId()}" th:text="${bug.getSubmitterId()}"></option>
                        </select>
                    </td>
                    <td><a th:href="@{/delect(bugId=${bug.getBugId()})}" onclick="javascript:return window.confirm('确认删除吗？')">删除</a></td>
                </tr>
                <p>
                    <button type="button" style=" color: black;width:100px;text-align:center;height:50px;font-size: 18px" onclick="javascript:return window.confirm('确认更改吗？')">
                   <input type="submit" value="更改" />
                    </button>
                    <button type="button" style=" color: black;width:100px;text-align:center;height:50px;font-size: 18px" onclick="javascript:return window.confirm('确认重置吗？')">
                    <input type="reset" value="重置"/>
                    </button>
                    <button type="button" style=" color: black;width:100px;text-align:center;height:50px;font-size: 18px"><a th:href="@{/findAllBugs_test_manager}">返回</a></button>
                </p>
            </table>
        </form>
    </div>
    <div>
        <br><br><br>
    </div>
    <footer id="footer" class="footer2">
        <div class="copyright">
            <div class="container">
                <div class="row">
                    <div class="col-md-6">
                        <small>
                            &copy; <a th:href="@{/}">
                            Y.W.J &nbsp L.H.Y &nbsp L.Z.L &nbsp L.Q.L &nbsp S.S.K
                        </a>
                        </small>
                    </div>
                    <div class="col-md-6 text-right">
                        <div class="footer-menu">
                            <ul id="menu-footer-links" class="menu">
                                <li><a href="#"><i class="fa fa-facebook"></i> Like us on Facebook</a></li>
                                <li><a href="#"><i class="fa fa-twitter"></i> Follow us on Twitter</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </footer>
</div>
</body>
</html>

